package com.share.barter.data;

import java.util.List;

import com.share.barter.data.pojo.Barter;

public interface BarterMapper {

	/**
	 * select all
	 * @return
	 * @throws Exception
	 */
	public List FindAll() throws Exception;
	
	/**
	 * add barter
	 * @param list
	 * @throws Exception
	 */
	public void saveBarter(Barter barter) throws Exception;

	/**
	 * update barter
	 * @param id
	 * @throws Exception
	 */
	public void updateBarter(Barter barter) throws Exception;
	
	/**
	 * selectById barter
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public List selectById(String id) throws Exception;
}
